﻿
namespace QFramework
{
    using UnityEngine;
    using FairyGUI;

    public class Basics_Demo_TextData : IUIData
    {

    }

    public partial class Basics_Demo_Text :  FGUIBehaviour{

        protected override void InitUI(IUIData uiData = null)
        {
            mData = uiData as Basics_Demo_TextData;

            //n12.asRichTextField.onClickLink.Add((EventContext context) =>
            //{
            //    GRichTextField t = context.sender as GRichTextField;
            //    t.text = "[img]ui://Basics/pet[/img][color=#FF0000]You click the link[/color]：" + context.data;
            //});

            //n25.onClick.Add(() => { n24.text = n22.text; });
        }

        protected override void ProcessMsg(int eventId, QMsg msg)
        {
            throw new System.NotImplementedException();
        }

        protected override void RegisterUIEvent()
        {
        }

        protected override void Button(string ButtonName)
        {
           
        }

        protected override void OnShow()
        {
            base.OnShow();
        }

        protected override void OnHide()
        {
            base.OnHide();
        }

        protected override void OnClose()
        {
            base.OnClose();
        }

        void ShowLog(string content)
        {
            Debug.Log("[ Basics_Demo_Text:]" + content);
        }

        Basics_Demo_TextData mData = null;

    }
}